package com.smxy.mall.model.request.user;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@ApiModel
@Data
public class PhoneReq {
    @NotNull(message = "~手机号不能为空")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1\\d{10}$",message = "手机号格式错误")
    private String phone;
    @NotNull(message = "~密码不能为空")
    @NotBlank(message = "密码不能为空")
    private String userPsw;
}
